#ifndef DASHBOARDUI_VIEWGRAPH_H
#define DASHBOARDUI_VIEWGRAPH_H

#include "RecordDatabase.h"

#include <QWidget>

namespace Ui {
class DashboardUI_ViewGraph;
}

class DashboardUI_ViewGraph : public QWidget
{
    Q_OBJECT
    
public:
    explicit DashboardUI_ViewGraph(QWidget *parent = 0);
    ~DashboardUI_ViewGraph();

public slots:
    void setDateFields(QDateTime start, QDateTime end);
    void setRange();
    void reload();
    
private slots:
    void on_typeGroup_buttonClicked(int id);

    void on_linearRegButton_clicked();

    void on_hideRegButton_clicked();

    void on_resetViewButton_clicked();

private:
    bool showRegLine;

    Ui::DashboardUI_ViewGraph *ui;
    RecordDatabase recordDB;
};

#endif // DASHBOARDUI_VIEWGRAPH_H
